package com.example.coursehub.repository;

import com.example.coursehub.entity.CourseQuestionBank;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

public interface CourseQuestionBankRepository extends JpaRepository<CourseQuestionBank, String>, JpaSpecificationExecutor<CourseQuestionBank> {
    Optional<CourseQuestionBank> findByCourse_CourseId(String courseId);
}